package dhy.lyb.change.service.impl;

import dhy.lyb.change.dao.FoodDao;
import dhy.lyb.change.model.Activity;
import dhy.lyb.change.model.Food;
import dhy.lyb.change.model.User;
import dhy.lyb.change.service.FoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created by Administrator on 2016/11/29.
 */
@Service("foodService")
public class FoodServiceImpl extends BaseServiceImpl<Food> implements FoodService {

    @Autowired
    private FoodDao foodDao;

    @Autowired
    public void setBaseDao() {
        super.setBaseDao(foodDao);
    }

    public List<Food> getFoodsByUser(User user) {
        return foodDao.getFoodsByUser(user);
    }

    @Override
    public List<Food> getRecords() {
        return super.getRecords();
    }
}
